<#include "/client/config.ftl"/>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
		<title></title>
		<link rel="stylesheet" href="${base}/css/bootstrap.min.css" />
		<script type="text/javascript" src="${base}/js/jquery-1.12.0.min.js"></script>
		<link rel="stylesheet" href="${base}/css/common.css" />
		<script type="text/javascript" src="${base}/js/common.js" ></script>
	</head>
	<body>
		<div class="container-fluid">
			<fieldset disabled>
				<div class="form-group mar_top">
					<label class="login_reg_label">姓名：</label>
					<input type="text" placeholder="${user.name}" class="form-control login_reg_input" id="disabledInput" />
				</div>
				<div class="form-group">
					<label class="login_reg_label">性别：</label>
					<select id="disableSelect" class="form-control login_reg_input">
						<option>${user.sex}</option>
					</select>
				</div>
				<div class="form-group">
					<label class="login_reg_label">年龄：</label>
					<input id="disabledInput" type="text" class="form-control login_reg_input" placeholder="${user.age}" />
				</div>
			</fieldset>
			<div class="form-group">
				<label class="login_reg_label">手机号码：</label>
				<input type="text" id="phone" class="form-control login_reg_input" placeholder="${user.phone}" />
			</div>
			<fieldset disabled>
				<div class="form-group">
					<label class="login_reg_label">微信号：</label>
					<input id="disabledInput" type="text" class="form-control login_reg_input" placeholder="${user.weichat}" />
				</div>
				<div class="form-group">
					<label class="login_reg_label">家属号码：</label>
					<input id="disabledInput" type="text" class="form-control login_reg_input" placeholder="${user.phone}" />
				</div>
				<div class="form-group">
					<label class="login_reg_label">诊断结果：</label>
					<input id="disabledInput" type="text" class="form-control login_reg_input" placeholder="${user.diagnosis}" />
				</div>
				<div class="form-group">
					<label class="login_reg_label">受教育成度：</label>
					<input id="disabledInput" type="text" class="form-control login_reg_input" placeholder="${user.edu}" />
				</div>
				<div class="form-group">
					<label class="login_reg_label">是否有医学背景：</label>
					<input id="disabledInput" type="text" class="form-control login_reg_input" placeholder="${user.medicbg}" />
				</div>
				<div class="form-group">
					<label class="login_reg_label">经济状况：</label>
					<input id="disabledInput" type="text" class="form-control login_reg_input" placeholder="${user.economy}" />
				</div>
			</fieldset>
			<div class="form-group login_reg_btn">
				<button id="submit"  class="btn btn-primary">保存修改</button>
			</div>
		</div>
		<script>
			$(document).ready(function(){
				$("#submit").click(function(){
					var phone = $("#phone").val();
					alert($("#phone").val());
					updatePhone("${base}/client/user/updatePhone",phone);
				});
			});
		</script>
	</body>
</html>
